﻿using System;

namespace smp.ButterflyCakes.Models
{
    public class BasicJsonResult
    {
        public BasicJsonResult()
        {
            Success = true;
        }

        public BasicJsonResult(Guid id)
        {
            Success = true;
            Id = id;
        }
        
        public BasicJsonResult(string error)
        {
            Success = false;
            ErrorMessage = error;
        }

        public bool Success { get; set; }
        public Guid Id { get; set; }
        public string ErrorMessage { get; set; }
    }
}
